function correlations_picture(X1, YMatrix1, YMatrix2, YMatrix3, YMatrix4)
%CREATEFIGURE4(X1, YMatrix1, YMatrix2, YMatrix3, YMatrix4)
%  X1:  vector of x data
%  YMATRIX1:  matrix of y data
%  YMATRIX2:  matrix of y data
%  YMATRIX3:  matrix of y data
%  YMATRIX4:  matrix of y data

%  Auto-generated by MATLAB on 17-Sep-2018 15:11:06

% Create figure
figure1 = figure;

% Create subplot
subplot1 = subplot(2,2,1,'Parent',figure1);
hold(subplot1,'on');

% Create multiple lines using matrix input to plot
plot1 = plot(X1,YMatrix1,'Parent',subplot1);
%set(plot1(1),'LineStyle','-');
set(plot1(1),'LineStyle','--');
set(plot1(2),'LineStyle','-.');
set(plot1(3), 'LineStyle',':');

set(plot1(1),'Color',[0 0 0]);
set(plot1(2),'Color',[0 0 0]);
set(plot1(3),'Color',[0 0 0]);

% Create ylabel
ylabel('Density');

% Create xlabel
xlabel({'Pairwise correlations, \delta=0.9',''});

% Create title
title('Census');

% Uncomment the following line to preserve the Y-limits of the axes
% ylim(subplot1,[0 13]);
box(subplot1,'on');
set(subplot1,'XTick',[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]);

% Create subplot
subplot2 = subplot(2,2,2,'Parent',figure1);
hold(subplot2,'on');

% Create multiple lines using matrix input to plot
plot2 = plot(X1,YMatrix2,'Parent',subplot2);
set(plot2(1),'DisplayName','Data (Kanzara)','LineStyle','-');
set(plot2(2),'DisplayName','n=4', 'LineStyle','--');
set(plot2(3),'DisplayName','n=37', 'LineStyle','-.');
set(plot2(4),'DisplayName','n=180', 'LineStyle',':');
set(plot2(1),'Color',[0 0 0]);
set(plot2(2),'Color',[0 0 0]);
set(plot2(3),'Color',[0 0 0]);
set(plot2(4),'Color',[0 0 0]);


% Create ylabel
ylabel('Density');

% Create xlabel
xlabel({'Pairwise correlations, \delta=0.9',''});

% Create title
title('Sample');

% Create legend
legend(subplot2,'show');
box(subplot2,'on');
set(subplot2,'XTick',[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]);
% Create subplot
subplot3 = subplot(2,2,3,'Parent',figure1);
hold(subplot3,'on');

% Create multiple lines using matrix input to plot
plot3 = plot(X1,YMatrix3,'Parent',subplot3);
%set(plot3(1),'LineStyle','-');
set(plot3(1),'LineStyle','--');
set(plot3(2),'LineStyle','-.');
set(plot3(3),'LineStyle',':');
set(plot3(1),'Color',[0 0 0]);
set(plot3(2),'Color',[0 0 0]);
set(plot3(3),'Color',[0 0 0]);

% Create ylabel
ylabel('Density');

% Create xlabel
xlabel({'Pairwise correlations, \delta=0.94',''});

% Create title
title('Census');

box(subplot3,'on');
set(subplot3,'XTick',[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]);
% Create subplot
subplot4 = subplot(2,2,4,'Parent',figure1);
hold(subplot4,'on');

% Create multiple lines using matrix input to plot
plot4 = plot(X1,YMatrix4,'Parent',subplot4);
set(plot4(1),'LineStyle','-');
set(plot4(2),'LineStyle','--');
set(plot4(3),'LineStyle','-.');
set(plot4(4),'LineStyle',':');
set(plot4(1),'Color',[0 0 0]);
set(plot4(2),'Color',[0 0 0]);
set(plot4(3),'Color',[0 0 0]);
set(plot4(4),'Color',[0 0 0]);

% Create ylabel
ylabel('Density');

% Create xlabel
xlabel({'Pairwise correlations, \delta=0.94',''});

% Create title
title('Sample');
box(subplot4,'on');
set(subplot4,'XTick',[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]);
